package vcp.gui.forms;

import java.util.Observable;
import java.util.Observer;

import vcp.gui.components.VCPPanel;
import javax.swing.JLabel;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;

public class SaveParkingForm extends VCPPanel {
	private JTextField xPostionField;
	private JTextField yPostionField;
	private JTextField floorField;
	private JButton btnSaveParking;
	private JLabel lblrownum;

	public SaveParkingForm() {
		setLayout(null);

		JLabel lblPleaseInsertThe = new JLabel(
				"Please insert the postion cordenats");
		lblPleaseInsertThe.setBounds(74, 60, 205, 14);
		add(lblPleaseInsertThe);

		JLabel lblPostionSaving = new JLabel("Postion Saving");
		lblPostionSaving.setFont(new Font("Tahoma", Font.PLAIN, 18));
		lblPostionSaving.setForeground(Color.BLUE);
		lblPostionSaving.setBounds(74, 21, 292, 28);
		add(lblPostionSaving);

		JLabel lblFloor = new JLabel("Floor");
		lblFloor.setBounds(74, 100, 46, 14);
		add(lblFloor);

		xPostionField = new JTextField();
		xPostionField.setBounds(112, 131, 46, 20);
		add(xPostionField);
		xPostionField.setColumns(10);

		yPostionField = new JTextField();
		yPostionField.setBounds(112, 162, 46, 20);
		add(yPostionField);
		yPostionField.setColumns(10);

		floorField = new JTextField();
		floorField.setBounds(112, 100, 46, 20);
		add(floorField);
		floorField.setColumns(10);

		JLabel lblX = new JLabel("X");
		lblX.setBounds(74, 131, 27, 14);
		add(lblX);

		JLabel lblY = new JLabel("Y");
		lblY.setBounds(74, 162, 27, 14);
		add(lblY);

		JLabel label = new JLabel("1-3");
		label.setBounds(183, 100, 46, 14);
		add(label);

		JLabel label_1 = new JLabel("1-3");
		label_1.setBounds(183, 134, 46, 14);
		add(label_1);

		lblrownum = new JLabel("1-rowNum");
		lblrownum.setBounds(183, 165, 67, 14);
		add(lblrownum);

		btnSaveParking = new JButton("New button");
		btnSaveParking.setBounds(74, 209, 89, 23);
		add(btnSaveParking);
	}
	
	public JButton getBtnSaveParking() {
		return btnSaveParking;
	}

	public void setBtnSaveParking(JButton btnSaveParking) {
		this.btnSaveParking = btnSaveParking;
	}


}
